const { wxLogin } = require('./services/auth')
//old:wx12024773a94e48ef new:wx563fd8d5d05cca82
App({
  onLaunch: function () {
    //微信登录
    this.wxLogin();
  },
  //微信登录
  wxLogin: function () {
    wx.checkSession({
      success: res => {
        //session_key 未过期,正常使用
        wxLogin()
      },
      fail: (res) => {
        //获取code并缓存
        wxLogin()
      }
    });
  },
  globalData: {},
})
